import 'package:flutter/material.dart';
import './dataList.dart';
import '../../../widgets/room_list_widget.dart';

class TabSearch extends StatefulWidget {
  @override
  _TabSearchState createState() => _TabSearchState();
}

class _TabSearchState extends State<TabSearch> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('首页-tabsearch'),
      ),
      body: Column(
        children: [
          Container(
            child: Text('fifter'),
            height: 40.0,
          ),
          Expanded(
              child: ListView(
            children: dataList.map((e) => RoomListItemWidget(e)).toList(),
          ))
        ],
      ),
    );
  }
}
